/**
 * Created with IntelliJ IDEA.
 * User: Alex
 * Date: 12.04.14
 * Time: 14:06
 * To change this template use File | Settings | File Templates.
 */
function showTime()
{
    var date = new Date();
    var H = '' + date.getHours();
    H = H.length<2 ? '0' + H:H;
    var M = '' + date.getMinutes();
    M = M.length<2 ? '0' + M:M;
    var S = '' + date.getSeconds();
    S =S.length<2 ? '0' + S:S;
    var clock = H + ':' + M + ':' + S;
    document.getElementById('clock').innerHTML=clock;
    setTimeout(showTime,1000);
    }

